<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>上传面料附件</title>
<script type="text/javascript" src="index.php?act=jslang"></script>
<script language="javascript" type="text/javascript"
	src="{res file=js/jquery-1.2.6.js}"></script>
<script language="javascript" type="text/javascript"
	src="{res file=js/common.js}"></script>
<script language="javascript" type="text/javascript"
	src="{lib file=ajaxfileupload.js}"></script>
<script language="javascript" type="text/javascript"
	src="{res file=js/jquery.funkyUI.js}"></script>
<script language="JavaScript" type="text/javascript"
	src="{res file=js/lan.js}"></script>
<link href="template/style/css/style.css" type="text/css"
	rel="stylesheet" />
<style>
label.error {
	color: red;
}
</style>
<body>
	<div class="sub-body">
		<div class="tab-frame" style="width: 900px;">
			<div class="tab-title-1">
				<span>上传附件</span>
			</div>
			<form id="process_form" method="post" enctype="multipart/form-data">
				<table width="100%" cellspacing="0" cellpadding="0" align="left"
					class="tab-display">
					<tbody>
						<tr>
							<th align="center" width="12%">上传附件</th>
							<td align="left">
								<!-- {if ($user.role eq USER_QC || $user.role eq USER_OUTGOING) && $process.status eq ORDER_STATUS_CONFIRM} -->
								<input type="button" class="btn-3" value="{$lang.upload_enclosure}" onClick="upload_docs({$belongs_process_receipt}, {$process.process_id});" />
								<!-- {/if} -->
							</td>
						</tr>
						<tr>
							<td align="left" colspan="2" id="process_receipt_file">
								<ul>
								<!-- {foreach from=$process.process_file item=file} -->
										<li style="float: left"><a href="{$file.file_path}" target="_blank"><img src="{$file.file_path}" title="{$file.file_name}" width="400px" height="300px" /></a>&nbsp;&nbsp;
									   		<p style="text-align: center;">{$file.file_name}
									   			<!-- {if $user.role==USER_QC} -->
											   	<a class="pic_del" style="color:blue"  href="{url app=comupload&act=delete&id=$file.file_id}" onClick="return confirm('{$lang.confirm_del_file}')" title="{$lang.delete}">&nbsp;</a>
											   <!-- {/if} -->
									   		</p>
									   	</li>
								<!-- {/foreach} -->
								</ul>
							</td>
						</tr>
						<tr>
							<td colspan="6">
								<input type="button" value="返 回" id="submit" class="btn-2" onclick="history.back();"/>
							</td>
						</tr>
					</tbody>
				</table>
			</form>
		</div>
	</div>
	<div id="remsg"></div>
</body>
</html>